package com.resou.reader.base;


import io.reactivex.disposables.CompositeDisposable;
import io.reactivex.disposables.Disposable;

public class RxPresenter<V extends BaseView> implements BasePresenter {
    private CompositeDisposable mCompositeDisposable;

    protected V mView;

    public RxPresenter(V view) {
        mView = view;
        mCompositeDisposable = new CompositeDisposable();
    }
    public void addCompositeDisposable(Disposable disposable) {
        mCompositeDisposable.add(disposable);
    }

    @Override
    public void subscribe() {

    }

    @Override
    public void unsubscribe() {
        mCompositeDisposable.dispose();
    }
}
